package com.jeomo.mem.starter.service;

import com.jeomo.base.starter.service.IBaseService;
import com.jeomo.mem.starter.entity.MemberPointsActivity;
import com.jeomo.mem.starter.entity.MemberPointsActivityRule;

import java.util.List;
import java.util.Map;

/**
 * 积分活动服务
 *
 * @author:Jackpot
 * @create 2020-09-21 17:20
 * @description:
 */
public interface IMemPointsActivityService extends IBaseService<MemberPointsActivityRule> {

    /**
     * 分页查询积分规则
     * @param pageNumber    开始页数
     * @param pageSize      每页大小
     * @param searchParams  查询参数(可为null)
     * @return
     */
//    List<MemberPointsActivityRule> getRulesByPage(long pageNumber, long pageSize, Map<String, Object> searchParams);

    /**
     * 修改规则状态
     * @param ruleCode
     * @param status 开启/关闭
     * @return
     */
    boolean updateRuleStatus(String ruleCode, boolean status);


    /**
     * 获取所有的积分活动规则
     * @return
     */
//    List<MemberPointsActivity> getAllPointsActivities();
}
